
$(function() {
	$('#dept').selectChain({
		target: $('#all'),
		key: "id",
		value: "name",
		url: 'emp.php?do=Emp.ajax_dept',
		data: { ajax: true }
	}).trigger('change');
	
	$('#all').transfer({
		to: '#emp',
		searchId: '#search',
		dblClick: true,
		searchText: '{count} options matching {keyword}',
		searchTextId: '#searchText',
		addId: '#addT',
		removeId: '#removeT', 
		addAllId: '#addAllT', 
		removeAllId: '#removeAllT',
		tClass: 'added'
	});

	$('textarea').css("width", 400);
});